﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Benefit.Models.Sys;

namespace Benefit.Interface.Sys
{
    public interface IDayGroupOperators
    {


        /// <summary>
        /// 得到指定日期的小组的组员
        /// </summary>
        /// <param name="groupId"></param>
        /// <param name="pdate"></param>
        /// <returns></returns>
        List<Operator> GetGroupOperators(int groupId, DateTime pdate);
        /// <summary>
        /// 得到指定日期的所有组员
        /// </summary>
        /// <param name="groupId"></param>
        /// <param name="pdate"></param>
        /// <returns></returns>
        List<DayGroupOperators> GetGroupOperators(DateTime pdate);


        /// <summary>
        /// 得到操作员制定日期所在小组
        /// </summary>
        /// <param name="operatorid"></param>
        /// <param name="pdate"></param>
        /// <returns></returns>
        int GetGroupId(int operatorid, DateTime pdate);

        /// <summary>
        /// 得到操作员当月所在小组，如果交易员换组，则返回最后的组
        /// </summary>
        /// <param name="operatorid"></param>
        /// <param name="pdate"></param>
        /// <returns></returns>
        int GetGroupIdInMonth(int operatorid, int month, int year);

        /// <summary>
        /// 初始化每天的小组人员关系
        /// </summary>
        void InitDayGroupOperators(DateTime pdate);

        /// <summary>
        /// 删除某天的小组人员关系
        /// </summary>
        void DeleteDayGroupOperators(DateTime pdate);

        /// <summary>
        /// 得到操作员制定日期所在小组
        /// </summary>
        /// <param name="operatorid"></param>
        /// <param name="pdate"></param>
        /// <returns></returns>
        Models.Sys.Groups GetGroup(int operatorid, DateTime pdate);

        List<DayGroupOperators> GetList();
    }
}
